﻿@model iDMS.Models.Sheet
           
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary()
    <fieldset>
        <legend>Sheet</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.PageNmb)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.PageNmb, new { @id = "TitleTextBox", @style = "width:45px;height:45px;" })
            @*TODO: Readonly*@
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.FormatID)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.FormatID, (IEnumerable<SelectListItem>)ViewBag.Formats)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.CarrierID)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.CarrierID, (IEnumerable<SelectListItem>)ViewBag.Carriers)
        </div>
        @if (!ViewBag.Drawing.DesignChange.isActive || ViewBag.isReplace )
        {
            <div class="editor-label">
                @Html.LabelFor(model => model.DesignChangeID)
            </div>
            <div class="editor-field">
                @Html.DropDownListFor(model => model.DesignChangeID, (IEnumerable<SelectListItem>)ViewBag.DChanges)
            </div>
        }
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

